package com.turing.post.cardmanagement.util;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 应用管理信息
 * 
 * @author zxp
 * @Apr 9, 2013
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "AppManagement")
public class AppManagement implements Serializable {

	/**
	 * 燃气车加气卡应用编号 Gas car The aerated card application
	 */
	public static final String AppManagement_Gas = "A00000000386980703";

	/**
	 * 成功
	 */
	public static final String Success = "00";

	/**
	 * 失败
	 */
	public static final String Failed = "10";

	/**
	 * 挂失
	 */
	public static final String App_tranType_Loss = "1000";
	/**
	 * 解挂失
	 */
	public static final String App_tranType_UnLoss = "1001";
	/**
	 * 赎回
	 */
	public static final String App_tranType_Redemp = "2000";
	/**
	 * 换卡
	 */
	public static final String App_tranType_Change = "3000";
	/**
	 * 0 - 未激活
	 */
	public static final String AppManagement_NoActivate = "0";

	/**
	 * 1 - 已激活
	 */
	public static final String AppManagement_Activate = "1";

	private BigInteger appId;// 应用管理ID
	private String AID;// 应用服务编号
	// APPSEQNO 加入 AppManagement 表中，前台不能修改，不显示，只在卡发行时自动+1
	/**
	 * 应用序列号
	 */
	private BigInteger appSeqNo;
	private String appName;// 应用名称 Varchar（60）
	private String serviceAddr;// 管理方服务地址 Varchar（255）
	private String activate;// 激活标示 Char（1）
	private String issueCompanyNo;
	private String jndiName;
	private String remark;// 备注 Varchar（255）

	public AppManagement() {

	}

	@Id
	@Column(name = "appId")
	public BigInteger getAppId() {
		return appId;
	}

	public void setAppId(BigInteger appId) {
		this.appId = appId;
	}

	@Column(name = "AID")
	public String getAID() {
		return AID;
	}

	public void setAID(String aid) {
		AID = aid;
	}

	@Column(name = "APPSEQNO")
	public BigInteger getAppSeqNo() {
		return this.appSeqNo;
	}

	public void setAppSeqNo(BigInteger appSeqNo) {
		this.appSeqNo = appSeqNo;
	}

	@Column(name = "appName")
	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	@Column(name = "serviceAddr")
	public String getServiceAddr() {
		return serviceAddr;
	}

	public void setServiceAddr(String serviceAddr) {
		this.serviceAddr = serviceAddr;
	}

	@Column(name = "activate")
	public String getActivate() {
		return activate;
	}

	public void setActivate(String activate) {
		this.activate = activate;
	}

	@Column(name = "issueCompanyNo")
	public String getIssueCompanyNo() {
		return issueCompanyNo;
	}

	public void setIssueCompanyNo(String issueCompanyNo) {
		this.issueCompanyNo = issueCompanyNo;
	}

	@Column(name = "jndiName")
	public String getJndiName() {
		return jndiName;
	}

	public void setJndiName(String jndiName) {
		this.jndiName = jndiName;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}
